package com.db.person.mapper;

import com.db.person.bean.User_inf;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    public User_inf login(@Param("loginname") String loginname, @Param("password") String password);

    public void regist(User_inf user_inf);

    public User_inf getByEmail(@Param("loginname") String loginname,@Param("username") String username,@Param("email") String email);

    public void setPwd(@Param("loginname") String loginname, @Param("password") String password);

    public User_inf getByLoginname(@Param("loginname") String loginname);

    public List<User_inf> getAll();

    public User_inf getById(Integer id);

    public void setSomeById(User_inf user_inf);

    public void deleteById(Integer id);
}
